﻿// Logger.cs
// This program contains a class with utility methods for logging

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace armsim
{
    /// <summary>
    /// Provides static utilities for logging events
    /// See App.config for further details.
    /// </summary>
    class Logger
    {

        /// <summary>
        /// Logs the contents to a file and commandline
        /// </summary>
        /// <param name="contents">The contents to be logged</param>
        public static void LogEvent(String contents)
        {
            Trace.WriteLine(contents);
        }

        /// <summary>
        /// Logs the heading and contents to a file and commandline
        /// </summary>
        /// <param name="heading">The heading to be logged</param>
        /// <param name="contents">The contents to be logged</param>
        public static void LogEvent(String heading, String contents)
        {
            Trace.WriteLine(String.Format("{0}: {1}", heading, contents));
        }

    }

}
